<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <title>search (MywikiController)</title>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
</head>
<body class="standalone-code">
  <pre><span class="ruby-comment cmt"># File app/controllers/mywiki_controller.rb, line 213</span>
  <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">search</span>
        <span class="ruby-identifier">gen_content</span>
        <span class="ruby-identifier">get_user</span>
        <span class="ruby-ivar">@mywikis</span> = <span class="ruby-constant">Mywiki</span>.<span class="ruby-identifier">find_by_contents</span>(<span class="ruby-identifier">params</span>[<span class="ruby-identifier">:searchkey</span>]) 
        <span class="ruby-comment cmt">#@mywikis = Mywiki.find(:all, :conditions =&gt; &quot;tags like '%&quot;+params[:searchkey]+&quot;%' or description like '%&quot;+params[:searchkey]+&quot;%' or body like '%&quot;+params[:searchkey]+&quot;%' or title like '%&quot;+params[:searchkey]+&quot;%'&quot;)   </span>
  <span class="ruby-keyword kw">end</span></pre>
</body>
</html>